<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
	<style type="text/css">
	body, html,#allmap {
		width: 100%;
		height: 100%;
		overflow: hidden;
		margin:0;
		font-family:"微软雅黑";
	}
	/* 清除logo */
	.anchorBL, .BMap_cpyCtrl {
		display: none;
	}
	</style>
	<script type="text/javascript" src="https://api.map.baidu.com/api?type=webgl&v=1.0&ak=G1LFyjrNGIkns5OfpZnrCGAKxpycPLwb"></script>
	<title>地图展示</title>
</head>
<body>
	<div id="allmap"></div>
</body>
</html>
<script type="text/javascript">
	console.log(window.BMapGL)
    // GL版命名空间为BMapGL
    // 按住鼠标右键，修改倾斜角和角度
	var map = new BMapGL.Map("allmap");    // 创建Map实例
  	var point = new BMapGL.Point(116.404, 39.915); //Point类描述了一个地理坐标点，其中116.404表示经度，39.915表示纬度。（为天安门坐标）
	map.centerAndZoom(point, 12);  // 初始化地图,设置中心点坐标和地图级别
	map.enableScrollWheelZoom(true); //允许地图可被鼠标滚轮缩放，默认禁用
</script>
